package com.字节流读数据FileInPutStream;

import lombok.SneakyThrows;

import java.io.FileInputStream;
/*
读数据 一个一个读取
 */
public class Demo01 {
    @SneakyThrows
    public static void main(String[] args) {
        FileInputStream fileInputStream = new FileInputStream("hello.txt");
        int read = fileInputStream.read();
        System.out.println(read);
        fileInputStream.close();
        //多读取几次 直到文件里面没有内容了 就返回-1;
    }
}
